<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMSearchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //商品详情搜索
        Schema::create('m_search', function (Blueprint $table) {
            $table->increments('mid');
            $table->integer('fid')->unsigned();
            $table->integer('gid')->unsigned();
            $table->string('brand')->default('其它');
            $table->string('os');
            $table->string('color');
            $table->string('screen');
            $table->integer('price')->unsigned();
            $table->string('styel');
            $table->string('divide');
            $table->string('sustain');
            //$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
		Schema::drop('m_search');
    }
}
